home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
spermananalodyssea.swf
/
scripts
/
frame_8
/
PlaceObject2_146_70
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2005-11-04
|
1KB
|
56 lines
onClipEvent(enterFrame){
if(broken != true)
{
scrollSpeed = this._x / _root.mainGround.ground._width * maxScrollSpeed + 2;
if(fly == true && crashed != true)
{
yspeed -= 2;
gravity = 0.9;
scrollStart = true;
this._rotation = -5;
}
if(fly == false)
{
this._rotation = 1;
}
yspeed += gravity;
yspeed *= friction;
if(_Y + yspeed + _height / 2 >= _root.wall1._y)
{
_Y = _root.wall1._y - _height / 2;
broken = true;
yspeed = 0;
gravity = 0;
scrollStart = false;
}
else if(_root.wall3._y >= _Y + yspeed - _height / 2)
{
_Y = _root.wall3._y + _height / 2;
yspeed = - yspeed;
}
else
{
_Y = _Y + yspeed;
}
if(_X + xspeed + _width / 2 >= _root.wall2._x)
{
_X = _root.wall2._x - _width / 2;
xspeed = - xspeed;
}
else if(_root.wall4._x >= _X + xspeed - _width / 2)
{
_X = _root.wall4._x + _width / 2;
xspeed = - xspeed;
}
else
{
_X = _X + xspeed;
}
xspeed *= friction;
}
if(_root.restart == true)
{
this.removeMovieClip();
}
}